package fun.taostool.controller.sys;

import fun.taostool.common.ResponseData;
import fun.taostool.service.sys.SysService;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sys")
public class SysController {
    @Resource
    private SysService sysService;

    @GetMapping("/version")
    public ResponseData GetVersion() {
        return ResponseData.success(sysService.version());
    }


}
